import home from './home'
import my from './my'
import news from './news'
import phone from './phone'
import accessory from './accessory'
import protect from './protect'
import custom from './custom'
import phoneDtails from './phoneDtails'
import cart from './cart'
import login from './login'
import register from './register'

export default [
  {
    path: '/',
    redirect: '/home'
  },
  {
    path: '/main',
    component: () => import('../../layout'),
    children: [
      ...home,
      ...news,
      ...my,
      ...phone,
      ...accessory,
      ...protect,
      ...custom,
      ...phoneDtails,
      ...cart,
      ...login,
      ...register
    ]
  }
]